/*
 * Class from CKS-Tagcloud 
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebPartPages;
using System.Xml.Serialization;
using System.Web.UI.HtmlControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebControls;
using System.Collections;
using System.Globalization;


namespace BDF.TagCloud
{
    /// <summary>
    /// Link class
    /// </summary>
    class Link : IComparable
    {
        private string title = String.Empty;
        private string uRL = String.Empty;
        private string createdOn = String.Empty;
        private string author = String.Empty;
        private string tags = String.Empty;
        private int noSaves = 0;

        public Link()
        {
        }

        public string Title
        {
            get
            {
                return this.title;
            }
            set
            {
                this.title = value;
            }
        }

        public string URL
        {
            get
            {
                return this.uRL;
            }
            set
            {
                this.uRL = value;
            }
        }

        public string CreatedOn
        {
            get
            {
                return this.createdOn;
            }
            set
            {
                this.createdOn = value;
            }
        }

        public string Author
        {
            get
            {
                return this.author;
            }
            set
            {
                this.author = value;
            }
        }

        public string Tags
        {
            get
            {
                return this.tags;
            }
            set
            {
                this.tags = value;
            }
        }
        
        public int NoSaves
        {
            get
            {
                return this.noSaves;
            }
            set
            {
                this.noSaves = value;
            }
        }

        #region IComparable Members

        public int CompareTo(object obj)
        {
            Link link = (Link) obj;
            return link.NoSaves.CompareTo(this.NoSaves);
        }

        #endregion
    }

}
   
